Packetery\Module\Checkout D

Total Complexity 207
Dependencies 36
Dependents 4
Total lines 1,405
Lines of code 783
Logical lines of code 409
Comment lines 309
Methods 45
Properties 15

Methods 45

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
C
33 25 93
updateOrderMeta()
C
34 23 84
getPostDataIncludingStoredData()
B
41 18 56
getShippingRates()
B
41 17 54
calculateFees()
B
42 16 52
filterPaymentGateways()
A
47 11 35
getTaxClassWithMaxRate()
A
49 9 33
getExpeditionDay()
S
52 6 24
isShippingRateRestrictedByProductsCategory()
S
55 6 20
getCODSurcharge()
S
60 6 13
getChosenMethodFromSession()
S
63 5 10
createSettings()
S
44 2 43
register_hooks()
S
53 3 22
renderWidgetButtonAfterShippingRate()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
renderEstimatedDeliveryDateSection()
S
65 3 11
getFormattedShippingMethodName()
S
69 3 6
isCodPaymentMethod()
S
74 3 4
renderWidgetButtonTableRow()
S
59 2 15
__construct()
S
57 1 17
isPickupPointCarrier()
S
71 2 6
getCarrierId()
S
69 2 7
getCarrierIdFromShippingMethod()
S
71 2 6
calculateShipping()
S
67 2 8
getTransientNamePacketaCheckoutData()
S
66 2 9
getChosenPaymentMethod()
S
70 2 7
getChosenMethod()
S
68 2 7
isHomeDeliveryOrder()
S
72 2 5
isCarDeliveryOrder()
S
72 2 5
updateShippingRates()
S
69 2 6
updateShippingPackages()
S
70 2 6
getCustomerCountry()
S
69 2 7
getCartWeightKg()
S
67 2 8
isPickupPointOrder()
S
72 2 5
renderHiddenInputFields()
S
61 1 14
getPickupPointValidateRequest()
S
61 1 14
calcTaxExclusiveFeeAmount()
S
77 1 3
createShippingRate()
S
65 1 9
removeShippingMethodPrefix()
S
78 1 3
getCartContentsTotalIncludingTax()
S
79 1 3
isPacketeryShippingMethod()
S
75 1 4
getCartPrice()
S
80 1 3
getRateCost()
S
78 1 3
isFreeShippingCouponApplied()
S
80 1 3